/**
 * 自动生成！请勿修改！
 */
import { command } from '../core/command';

class PowerSocket {
    constructor(opt = {}) {
        const { device, to, ...opts } = opt;

        this.device = device || {};
        this.opts = opts || {};
        this._to = to;
    }

    get categoryCode() {
        return '010010002';
    }

    get categoryName() {
        return '\u63d2\u5ea7';
    }

    getCurrentElectricity(params) {
        return command({
            method: 'getCurrentElectricity',
            methodId: 'p0cXc6eA',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getCurrentPower(params) {
        return command({
            method: 'getCurrentPower',
            methodId: 'pz93se7C',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getCurrentVoltage(params) {
        return command({
            method: 'getCurrentVoltage',
            methodId: 'pBTQJQ1r',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getElectricityStatistics(params) {
        return command({
            method: 'getElectricityStatistics',
            methodId: 'pXZuSB3d',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getFullPowerOffStatus(params) {
        return command({
            method: 'getFullPowerOffStatus',
            methodId: 'UmaSDdtG',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getFullPowerOffSwitch(params) {
        return command({
            method: 'getFullPowerOffSwitch',
            methodId: 'pWG0lA2V',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getIndicatorMode(params) {
        return command({
            method: 'getIndicatorMode',
            methodId: 'pkp10gOU',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getIndicatorSwitch(params) {
        return command({
            method: 'getIndicatorSwitch',
            methodId: 'p3de6zNw',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getInfraredControlSwitch(params) {
        return command({
            method: 'getInfraredControlSwitch',
            methodId: 'pqYhPC9S',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getOverloadProtectionStatus(params) {
        return command({
            method: 'getOverloadProtectionStatus',
            methodId: 'UaMC8ZBx',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getOverloadProtectionSwitch(params) {
        return command({
            method: 'getOverloadProtectionSwitch',
            methodId: 'Unfc4ri3',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getPowerOffMemorySwitch(params) {
        return command({
            method: 'getPowerOffMemorySwitch',
            methodId: 'pdN7hWYP',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getPowerOnState(params) {
        return command({
            method: 'getPowerOnState',
            methodId: 'UvxDHvbq',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getSwitch(params) {
        return command({
            method: 'getSwitch',
            methodId: 'ptRSARKm',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getVoiceCommandInfo(params) {
        return command({
            method: 'getVoiceCommandInfo',
            methodId: 'pj7xdhrZ',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getVoiceControlSwitch(params) {
        return command({
            method: 'getVoiceControlSwitch',
            methodId: 'pNnZCUmL',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setFullPowerOffSwitch(params) {
        return command({
            method: 'setFullPowerOffSwitch',
            methodId: 'pghzV1Ll',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setIndicatorMode(params) {
        return command({
            method: 'setIndicatorMode',
            methodId: 'pGoxuvBn',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setIndicatorSwitch(params) {
        return command({
            method: 'setIndicatorSwitch',
            methodId: 'pZgRgHt9',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setInfraredControlSwitch(params) {
        return command({
            method: 'setInfraredControlSwitch',
            methodId: 'p1vFkNWM',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setOverloadProtectionSwitch(params) {
        return command({
            method: 'setOverloadProtectionSwitch',
            methodId: 'phEqZoU5',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setPowerOffMemorySwitch(params) {
        return command({
            method: 'setPowerOffMemorySwitch',
            methodId: 'ppAXpy2I',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setPowerOnState(params) {
        return command({
            method: 'setPowerOnState',
            methodId: 'pUPQQiiE',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setSwitch(params) {
        return command({
            method: 'setSwitch',
            methodId: 'peHyXjuz',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setVoiceControlSwitch(params) {
        return command({
            method: 'setVoiceControlSwitch',
            methodId: 'pDrhxkbK',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }
}

export default PowerSocket;
